package com.job.log.service.impl;

import com.job.log.constant.XxlJobConstant;
import com.job.log.mapper.LogMapper;
import com.job.log.service.LogService;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class LogServiceImpl implements LogService {
    @Autowired
    private LogMapper logMapper;

    @Override
    @XxlJob(XxlJobConstant.CLEAN_LOG)
    public void cleanlog() {
        logMapper.cleanLog();
    }
}
